//@author A0105602X
#ifndef PAYMENTITEM_H
#define PAYMENTITEM_H

#include "Item.h"

using namespace std;
class PaymentItem:public Item{ //inherited from Item
	//very similar to Expense item
public:
	void writefile(char*);
	//pre:take in a filename
	//post:write this payment item to this file
	bool recordExtra();
	bool isexpense();
	void record_from_file(ifstream&, streampos);
	bool compare(Item&);
	void print();
};

#endif